//
//  CustomButtonView.m
//  CardToolClient
//
//  Created by zouzhisheng on 15/10/14.
//  Copyright © 2015年 zzs. All rights reserved.
//

#import "CustomButtonView.h"

@implementation CustomButtonView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
-(id)initWithFrame:(CGRect)frame{
    self=[super initWithFrame:frame];
    if (self) {
        _bgBt=[UIButton buttonWithType:UIButtonTypeCustom];
        _bgBt.frame=CGRectMake(0, 0,self.width, self.height);
        [self addSubview:_bgBt];
        _bgImageView=[[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 53, 53)];
        _titleLabel=[[UILabel alloc] initWithFrame:CGRectMake(0, 55, 44, 21)];
        _titleLabel.font=[UIFont systemFontOfSize:11];
        _titleLabel.textColor=[UIColor colorWithHexString:@"3c5768"];
        _titleLabel.textAlignment=NSTextAlignmentCenter;
        [_bgBt addSubview:_bgImageView];
        [_bgBt addSubview:_titleLabel];
    }
    return self;
}
@end
